{% extends "enterprise/base.html" %}

{% block css %}
{% endblock %}

{% block content %}
            <script type="text/javascript">
                var primary_menu = "menu_1";
                var sub_menu = "menu_1_0";
            </script>
            <div class="col-md-12">
                <form action='' method='POST' class="formSubmit">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <div class="panel-title"><h3>主要产品(含副产品和中间体) 及输出</h3></div>
                            <div class="panel-options">
                                <a href="#" data-rel="collapse"><i class="entypo-down-open"></i></a>
                                <!--<a href="#" data-rel="reload"><i class="entypo-arrows-ccw"></i></a>-->
                            </div>
                        </div>
                        <div class="panel-body with-table">
                            <table class="input_in table-detail">
                                <tr>
                                    <th colspan=2>名称</th>
                                    <td><input datatype="*" name='name' value='{{ c.name }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th colspan=2>类别</th>
                                    <td><input datatype="*" name='category' value='{{ c.category }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th colspan=2>CAS号</th>
                                    <td><input datatype="*" name='cas' value='{{ c.cas }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th colspan=2>是否属危化品</th>
                                    <td>
                                        <select name='is_dangerous'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th colspan=2>是否为重点环境管理危险品</th>
                                    <td>
                                        <select name='is_emphasis'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th colspan=2>是否属于安监重点监管危化品</th>
                                    <td>
                                        <select name='is_re_danger'>
                                            <option value='是'>是</option>
                                            <option value='否'>否</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th colspan=2>物质形态</th>
                                    <td>
                                        <select name='physical_form'>
                                            <option value='气'>气</option>
                                            <option value='液'>液</option>
                                            <option value='固'>固</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th colspan=2>危害特性</th>
                                    <td>
                                        <select name='hazard_pro' value='{{ m.hazard_pro }}'>
                                            <option value='易燃性'>易燃性</option>
                                            <option value='反应性'>反应性</option>
                                            <option value='腐蚀性'>腐蚀性</option>
                                            <option value='刺激性'>刺激性</option>
                                            <option value='急毒性'>急毒性</option>
                                            <option value='浸出毒性'>浸出毒性</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <th colspan=2>实际产量（t/a）</th>
                                    <td><input datatype="n" name='actual_amount' value='{{ c.actual_amount }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th colspan=2>贮存方式</th>
                                    <td><input datatype="*" name='storage_mode' value='{{ c.storage_mode }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th width="150" rowspan=2>系统内最大存量（t）</th>
                                    <td width="100">生产区</td>
                                    <td><input datatype="n" name='max_input_amount' value='{{ c.max_input_amount }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <td>贮存区</td>
                                    <td><input datatype="n" name='max_sto_amount' value='{{ c.max_sto_amount }}' type="text" value='' placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th colspan=2>输出去向</th>
                                    <td>
                                        <input datatype="*" name='out_mode' value='{{ c.out_mode }}' type="text" placeholder="请输入"></td>
                                </tr>
                                <tr>
                                    <th colspan=2>输出方式</th>
                                    <td>
                                        <input datatype="*" name='out_where' value='{{ c.out_mode }}' type="text" placeholder="请输入"></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <div class="buttons">
                        <input onclick="submitSave()" type="submit" class="btn btn-orange btn-lg" value="暂存">
                                <input type="submit" class="btn btn-success btn-lg" value="保存">
                        <input class="btn btn-info btn-lg" type="reset" value="重置"/>
                    </div>
                </form>
            </div>
{% endblock %}

{% block js %}
    <script>
        $(function(){
            $('select[name=is_dangerous]').val('{{ c.is_dangerous }}');
            $('select[name=is_emphasis]').val('{{ c.is_emphasis }}');
            $('select[name=is_re_danger]').val('{{ c.is_re_danger }}');
            $('select[name=hazard_pro]').val('{{ c.hazard_pro }}');
        })
    </script>
{% endblock %}